package cn.cj.erp.common.constants;

/**
 * 系统常量
 *
 * @author chenjian
 */
public class SystemConstants {
    /** 令牌前缀: uuid */
    public static final String JWT_LOGIN_UUID = "jwt_login_uuid";

    /** 令牌前缀: userid */
    public static final String JWT_LOGIN_USERID = "jwt_login_userid";

    /** 验证码有效期（分钟） */
    public static final Integer EXPIRE_MINUTE_CAPTCHA = 120;

    /** 密码最长不修改时间 */
    public static final Integer MAX_DAY_UPDATE_PASSWORD = 30;

    /** 超级管理员ID */
    public static final Long SUPER_ADMIN = 1L;

    /** 超级角色ID */
    public static final Long SUPER_ROLE = 1L;

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";

    /** ParentView组件标识 */
    public final static String PARENT_VIEW = "ParentView";

    /** InnerLink组件标识 */
    public final static String INNER_LINK = "InnerLink";

    /** 树的根ID */
    public final static Long TREE_ROOT = 0L;

    /** 服务器信息缓存有效期 */
    public static final long EXPIRE_REDIS_SERVER_INFO = 60;

    /** 一天的豪秒数 */
    public static final long MILLIS_DAY = 1000 * 24 * 60 * 60;

    /** 一小时的豪秒数 */
    public static final long MILLIS_HOUSE = 1000 * 60 * 60;

    /** 一分钟的豪秒数 */
    public static final long MILLIS_MINUTE = 1000 * 60;
}
